﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MINERP.DisjoinProForOutShop.Forms
{
    public partial class FrmTpyeSelect : Form
    {
        public FrmTpyeSelect()
        {
            InitializeComponent();
        }
        public delegate void PostClicks(int intType);

        public event PostClicks SelectType;
        private void buttonOk_Click(object sender, EventArgs e)
        {
            if(radioButtonPhoto.Checked)
            {
                SelectType(1);
            }
            else if (radioButtonProduct.Checked)
            {
                SelectType(2);
            }
            else
            {
                SelectType(0);
            }
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }

        private void buttonCancell_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.Close();
        }

       
    }
}
